package com.cr.admin.system.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.util.List;

@Data
public class SysRoleAddParam {

    @NotEmpty(message = "角色名称不能为空")
    @ApiModelProperty(value = "角色名称", required = true)
    private String name;

    @NotEmpty(message = "角色编码不能为空")
    @ApiModelProperty(value = "角色编码", required = true)
    private String code;

    @ApiModelProperty("状态（0正常，1停用）")
    private Integer status;

    @ApiModelProperty("角色备注")
    private String remark;

    @ApiModelProperty("菜单id列表")
    private List<Long> menuIds;

}
